export const proxyMap = {
  user: '/api/user',
  paas: '/api/paas',
  local: '/api/local',
  warehouse: '/api/warehouse',
  workbench: '/api/workbench',
};

export const response = (res) => {
  
  if (
    (res.code === 0 && res.success)
    || (res.status === 0 && res.succ)
  ) {
    return Promise.resolve(res.data);
  } 
  
  return Promise.reject(res);
};
